package com.mybatis.dao;

import com.mybatis.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserDao {

    public List<User> findUser(User u);

    List<User> findUser02(@Param(value = "min") double i,
                          @Param(value = "max") double a);

    List<User> likeUser(@Param(value = "un") String userName);

    int addUser01(User u);

    int batchAddUser(List<User> list);

    int editUser(User u);

    int removeUser(@Param(value = "id") int id);

    int batchRemoveUser(List<Integer> list);

}
